Skip to main content
PATCH
/
audiences
/
attributes
Update an audience attribute
curl --request PATCH \
  --url https://your_a2_service/audiences/attributes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "deprecated": false,
  "description": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updated_at": "2023-11-07T05:31:56Z",
  "visibility": "public"
}'
{
  "code": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "no": 123,
  "owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updated_at": "2023-11-07T05:31:56Z",
  "value_count": 123,
  "visibility": "public"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Represents a audience attribute entity.

code
string
required

Code representing the audience attribute.

This code serves as a key for properties in both AudienceSegment and Audience.

Required string length: 1 - 32
id
string<uuid>
required
name
string
required

Name of the audience attribute

owner_id
string<uuid>
required

Owner ID of the audience attribute

visibility
enum<string>
required

Visibility of the audience attribute

Available options:
public,
private
created_at
string<date-time> | null

The date and time the entity was created.

deprecated
boolean
default:false
description
string | null

Description of the audience attribute

updated_at
string<date-time> | null

The date and time the entity was last updated.

Response

Successful Response

Represents a audience attribute entity.

code
string
required

Code representing the audience attribute.

This code serves as a key for properties in both AudienceSegment and Audience.

Required string length: 1 - 32
id
string<uuid>
required
name
string
required

Name of the audience attribute

no
integer
required
owner_id
string<uuid>
required

Owner ID of the audience attribute

value_count
integer
required

The number of the possible values of audience attribute

visibility
enum<string>
required

Visibility of the audience attribute

Available options:
public,
private
created_at
string<date-time> | null

The date and time the entity was created.

description
string | null

Description of the audience attribute

updated_at
string<date-time> | null

The date and time the entity was last updated.